package org.yanfengying.utils.service;

import org.yanfengying.utils.query.BastQuery;
import org.yanfengying.utils.PageList;

import java.io.Serializable;
import java.util.List;

public interface IBastServer<T> {
    //========增删查改=========
    List<T> loadAll();

    void insert(T t);

    void delete(Serializable id);

    T loadById(Serializable id);

    void update(T t);
//    Integer totals(BastQuery query);

    //=====分页和高级查询=======
    PageList pageList(BastQuery query);

}
